package com.gitee.hermer.engine.jars.core.eventbus.factory.spring;

import javax.jms.JMSException;
import com.gitee.hermer.boot.jee.commons.log.UtilsContext;
import com.gitee.hermer.engine.jars.core.eventbus.listener.ExceptionListener;

public class SpringExceptionListener extends UtilsContext implements ExceptionListener,javax.jms.ExceptionListener{

	@Override
	public void onException(JMSException arg0) {
		onError(arg0);
	}

	@Override
	public void onError(Exception e) {
		if(!(e instanceof JMSException))
			error(e.getMessage(),e);
	}

	


}
